﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IPickImporterUI
{
    public partial class FormImport : Form
    {
        public FormImport()
        {
            InitializeComponent();
        }

        private void btnImport_Click(object sender, EventArgs e)
        {
            string error = "";

            this.lblErrorMessage.Text = "Busy Importing...";
            this.btnImport.Enabled=false;

            switch(cboImportSource.Text.ToUpper())
            {
                case "NETFLIX":
                       NetFlix.NetFlixImporter oImporter = new NetFlix.NetFlixImporter();
                       error= oImporter.ProcessImport();
                       break;
                 default:
                    break;
                        //do nothing
            }
          
            this.lblErrorMessage.Text = error;
            this.btnImport.Enabled = true;

        }

    }
}
